package com.Jhu1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 钟俊辉
 * @since 2025-01-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pid;

    private String pname;

    private Integer tid;

    private Integer price;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private String tname;
}
